import 'package:flutter/cupertino.dart';
import 'package:kq_flutter_core_widget/utils/kq_screen_util.dart';
import '../../resources/kq_theme_colors.dart';
import '../../resources/l10n/kq_intl.dart';

import '../../theme/kq_theme_manager.dart';

class KqEmptyTextView extends StatelessWidget {
  /// 文字
  final String? text;

  const KqEmptyTextView({super.key, this.text});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      padding: EdgeInsets.fromLTRB(12.r, 10.r, 0, 0),
      height: 44.r,
      child: Text(
        text ?? KqIntl.currentResource.noDataTip,
        textAlign: TextAlign.start,
        style: TextStyle(
            fontSize: KqThemeManager.getFormConfig().headerFontSize,
            color: KqThemeColors.text59),
      ),
    );
  }
}
